package demo.annotation.daoImplements;
import demo.annotation.daoInterface.MyDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;


@Repository("dao")//将该数据访问组件类标记成名为dao的Bean，思考为什么要用Repository，Component能不能运行？
public class MyDaoImpl implements MyDao{
    //cloze 注解注入username值 root
    private String username;
     // cloze 注解注入passward值 123456
    private String password;
        
    @Override
    public void insert() {
        // TODO Auto-generated method stub
        System.out.println("我是dao层的插入方法。");
    }
}